package test.pojo;

import com.alibaba.druid.util.DruidPasswordCallback;
import org.springframework.stereotype.Component;

import java.util.Properties;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : example
 * @ Author: XuLeHuang
 * @ Date: 2022/8/30 11:06
 * @ Description:
 */
@Component
public class DbPasswordCallback extends DruidPasswordCallback {

    @Override
    public void setProperties(Properties properties) {
        String password = properties.getProperty("password");
        System.out.println(password);
    }
}
